package com.copa.module.goods.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-08 12:08
 * @function
 */
@Data
public class GoodsUpdateVo {

    @ApiModelProperty(value = "商品id")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String name;

//    @ApiModelProperty(value = "类目id")
//    private Integer categoryId;

    @ApiModelProperty(value = "是否上架：0否1是")
    private Integer isOnSale;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

    @ApiModelProperty(value = "商品主图")
    private String picUrl;

    @ApiModelProperty(value = "是否展示：0否1是")
    private Integer isShow;

    @ApiModelProperty(value = "是否热门推荐：0否1是")
    private Integer isHot;

    @ApiModelProperty(value = "商品详情")
    private String detail;

    @ApiModelProperty(value = "商品展示价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品属性")
    @NotNull
    private List<GoodsAttributeVo> goodsAttributeVo;

    @ApiModelProperty(value = "产品")
    @NotNull
    private List<GoodsProductVo> goodsProductVo;

    @ApiModelProperty(value = "规格")
    @NotNull
    private List<GoodSpecificationsVo> goodSpecificationsVo;
}
